package aos.ydksxt.dao;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * Created by Stiofan on 2017/2/15.
 */
@Entity
@Table(name = "DJ_TDJCXX_TDDJMX")
public class DjTdjcxxTddjmx {
    private String tddjmxuuid;
    private String tdbh;
    private String tddjDm;
    private String dwseDm;
    private BigDecimal sebz;
    private BigDecimal tdmj;
    private BigDecimal ynse;
    private String yxbz;
    private String lrrDm;
    private Timestamp lrrq;
    private String xgrDm;
    private Timestamp xgrq;
    private String zfrDm;
    private Timestamp zfrq;
    private String zfyy;
    private BigDecimal tdyz;

    @Id
    @Column(name = "TDDJMXUUID", nullable = false, length = 32)
    public String getTddjmxuuid() {
        return tddjmxuuid;
    }

    public void setTddjmxuuid(String tddjmxuuid) {
        this.tddjmxuuid = tddjmxuuid;
    }

    @Basic
    @Column(name = "TDBH", nullable = false, length = 20)
    public String getTdbh() {
        return tdbh;
    }

    public void setTdbh(String tdbh) {
        this.tdbh = tdbh;
    }

    @Basic
    @Column(name = "TDDJ_DM", nullable = false, length = 4)
    public String getTddjDm() {
        return tddjDm;
    }

    public void setTddjDm(String tddjDm) {
        this.tddjDm = tddjDm;
    }

    @Basic
    @Column(name = "DWSE_DM", nullable = true, length = 3)
    public String getDwseDm() {
        return dwseDm;
    }

    public void setDwseDm(String dwseDm) {
        this.dwseDm = dwseDm;
    }

    @Basic
    @Column(name = "SEBZ", nullable = false, precision = 2)
    public BigDecimal getSebz() {
        return sebz;
    }

    public void setSebz(BigDecimal sebz) {
        this.sebz = sebz;
    }

    @Basic
    @Column(name = "TDMJ", nullable = true, precision = 2)
    public BigDecimal getTdmj() {
        return tdmj;
    }

    public void setTdmj(BigDecimal tdmj) {
        this.tdmj = tdmj;
    }

    @Basic
    @Column(name = "YNSE", nullable = true, precision = 2)
    public BigDecimal getYnse() {
        return ynse;
    }

    public void setYnse(BigDecimal ynse) {
        this.ynse = ynse;
    }

    @Basic
    @Column(name = "YXBZ", nullable = true, length = 1)
    public String getYxbz() {
        return yxbz;
    }

    public void setYxbz(String yxbz) {
        this.yxbz = yxbz;
    }

    @Basic
    @Column(name = "LRR_DM", nullable = true, length = 11)
    public String getLrrDm() {
        return lrrDm;
    }

    public void setLrrDm(String lrrDm) {
        this.lrrDm = lrrDm;
    }

    @Basic
    @Column(name = "LRRQ", nullable = true)
    public Timestamp getLrrq() {
        return lrrq;
    }

    public void setLrrq(Timestamp lrrq) {
        this.lrrq = lrrq;
    }

    @Basic
    @Column(name = "XGR_DM", nullable = true, length = 11)
    public String getXgrDm() {
        return xgrDm;
    }

    public void setXgrDm(String xgrDm) {
        this.xgrDm = xgrDm;
    }

    @Basic
    @Column(name = "XGRQ", nullable = true)
    public Timestamp getXgrq() {
        return xgrq;
    }

    public void setXgrq(Timestamp xgrq) {
        this.xgrq = xgrq;
    }

    @Basic
    @Column(name = "ZFR_DM", nullable = true, length = 11)
    public String getZfrDm() {
        return zfrDm;
    }

    public void setZfrDm(String zfrDm) {
        this.zfrDm = zfrDm;
    }

    @Basic
    @Column(name = "ZFRQ", nullable = true)
    public Timestamp getZfrq() {
        return zfrq;
    }

    public void setZfrq(Timestamp zfrq) {
        this.zfrq = zfrq;
    }

    @Basic
    @Column(name = "ZFYY", nullable = true, length = 300)
    public String getZfyy() {
        return zfyy;
    }

    public void setZfyy(String zfyy) {
        this.zfyy = zfyy;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DjTdjcxxTddjmx that = (DjTdjcxxTddjmx) o;

        if (tddjmxuuid != null ? !tddjmxuuid.equals(that.tddjmxuuid) : that.tddjmxuuid != null) return false;
        if (tdbh != null ? !tdbh.equals(that.tdbh) : that.tdbh != null) return false;
        if (tddjDm != null ? !tddjDm.equals(that.tddjDm) : that.tddjDm != null) return false;
        if (dwseDm != null ? !dwseDm.equals(that.dwseDm) : that.dwseDm != null) return false;
        if (sebz != null ? !sebz.equals(that.sebz) : that.sebz != null) return false;
        if (tdmj != null ? !tdmj.equals(that.tdmj) : that.tdmj != null) return false;
        if (ynse != null ? !ynse.equals(that.ynse) : that.ynse != null) return false;
        if (yxbz != null ? !yxbz.equals(that.yxbz) : that.yxbz != null) return false;
        if (lrrDm != null ? !lrrDm.equals(that.lrrDm) : that.lrrDm != null) return false;
        if (lrrq != null ? !lrrq.equals(that.lrrq) : that.lrrq != null) return false;
        if (xgrDm != null ? !xgrDm.equals(that.xgrDm) : that.xgrDm != null) return false;
        if (xgrq != null ? !xgrq.equals(that.xgrq) : that.xgrq != null) return false;
        if (zfrDm != null ? !zfrDm.equals(that.zfrDm) : that.zfrDm != null) return false;
        if (zfrq != null ? !zfrq.equals(that.zfrq) : that.zfrq != null) return false;
        if (zfyy != null ? !zfyy.equals(that.zfyy) : that.zfyy != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = tddjmxuuid != null ? tddjmxuuid.hashCode() : 0;
        result = 31 * result + (tdbh != null ? tdbh.hashCode() : 0);
        result = 31 * result + (tddjDm != null ? tddjDm.hashCode() : 0);
        result = 31 * result + (dwseDm != null ? dwseDm.hashCode() : 0);
        result = 31 * result + (sebz != null ? sebz.hashCode() : 0);
        result = 31 * result + (tdmj != null ? tdmj.hashCode() : 0);
        result = 31 * result + (ynse != null ? ynse.hashCode() : 0);
        result = 31 * result + (yxbz != null ? yxbz.hashCode() : 0);
        result = 31 * result + (lrrDm != null ? lrrDm.hashCode() : 0);
        result = 31 * result + (lrrq != null ? lrrq.hashCode() : 0);
        result = 31 * result + (xgrDm != null ? xgrDm.hashCode() : 0);
        result = 31 * result + (xgrq != null ? xgrq.hashCode() : 0);
        result = 31 * result + (zfrDm != null ? zfrDm.hashCode() : 0);
        result = 31 * result + (zfrq != null ? zfrq.hashCode() : 0);
        result = 31 * result + (zfyy != null ? zfyy.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "TDYZ", nullable = true, precision = 2)
    public BigDecimal getTdyz() {
        return tdyz;
    }

    public void setTdyz(BigDecimal tdyz) {
        this.tdyz = tdyz;
    }
}
